<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@page import="java.util.*, model.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<%
    	int[] specializationsArray = Database.getSpecializationAnalytics();
		Vector specializationsVector = Database.getSpecializations();
	%>
	
	<h1>Applicants Sorted by Specialization</h1>
	<table>
		<% 
		for( int i = 0; i < specializationsVector.size(); i++){%>		
		<tr>
			<td>
				<%=specializationsVector.get(i) %>
			</td>
			<td>
			<html:link action="/anaylitics.do">
				<html:param name="specialization" value="<%= Integer.toString(i+1) %>"/>
				<%= specializationsArray[i] %>
			</html:link>
			</td>
		</tr>
			
		<%}%>	
		
		
	</table>
	
	
	
	<br /> <br /> <html:link action="/ProcessStarted"> Start Review Process </html:link>
</body>
</html>